<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2.购物车效果.html</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
        .selects {
            width: 90%;
            height: 50px;
            margin: 5px auto;
            display: flex;
            justify-content: space-between;
        }

        .selects span {
            line-height: 50px;
        }
        .selects span:first-child {
            font-weight: bolder;
        }

        .shops {
            width: 90%;
            margin: 5px auto;
            /* background-color: magenta; */
            display: flex;
            flex-wrap: wrap;
        }

        .shops .list {
            width: 100%;
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .list img {
            width: 100px;
            height: 100px;
            display: inline-block;
        }

        .list .info {
            flex: 1;
            /* background-color: green; */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .info .shopName{
            display: inline-block;
            font-weight: bolder;
            margin: 5px 0px 0px 5px;

        }

        /* .info .price {
            background-color: aqua;
        } */

        .info .price span:nth-child(1) {
            color: red;
            font-weight: bolder;
            
        }

        .info .price span:last-child {
            font-size: 12px;
            color: rgb(104, 99, 99);
        }

        .list .add {
            width: 100px;
            height: 100px;
            /* background-color: yellow; */
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        .add span {
            display: inline-block;
            width: 22px;
            height: 22px;
            text-align: center;
            line-height: 22px;

        }

        .add span:nth-child(1) {
            border-radius: 50%;
            color: rgb(43, 106, 224);
            font-weight: bolder;
            border: 2px solid rgb(43, 106, 224);

        }

        .add span:nth-child(3) {
            border-radius: 50%;
            color: rgb(43, 106, 224);
            font-weight: bolder;
            border: 2px solid rgb(43, 106, 224);

        }

    </style>
</head>
<body>
    <div id="app">
        <div class="selects">
            <span>已选商品</span>
            <!-- <span></span> -->
            <span>清空</span>
        </div>
        <div class="shops">
            <div class="list" v-for="(item,index) in arr">
                <img :src="item.pic" alt="">
                <div class="info">
                    <span class="shopName"> {{item.name}} </span>
                    <div class="price">
                        <span>￥{{item.price}}</span>
                        <span>￥<del> {{item.noPrice}} </del></span>
                    </div> 
                </div>
                <div class="add">
                    <span>-</span>
                    <span>1</span>
                    <span>+</span>
                </div>
            </div>
        </div>

    </div>
    <script src="./vue-2.5.21.js"></script>
    <script src="./2.购物车效果.js"></script>

    
</body>
</html>